<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
        <head profile="http://gmpg.org/xfn/11">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title><?php echo $title_for_layout?></title>
		<meta name='robots' content='noindex,nofollow' />
		<?php echo $this->Html->script('prototype'); ?>
		<?php echo $this->Html->script('jquery'); ?>
		
		<script type="text/javascript">
			jQuery.noConflict()
		</script>
		
                <?php echo $this->Html->css(array('cvtek','pagenavi-css')); ?>

		<!--[if IE 7]>	
		<link rel="stylesheet" type="text/css" media="all" href="/iestyle.css" />
		<![endif]-->
		<!--[if lt IE 7]>
		<link rel="stylesheet" type="text/css" media="all" href="/ie6style.css" />
		<script defer type="text/javascript" src="/js/pngfix.js"></script>
		<![endif]-->
	</head>

	<body>
		<div class="logo"><span class="title"><?php echo $this->Html->link('The Network Profile', '/', array('class' => 'title')); ?></span>
			<?php echo $html->image('slogan-left.gif', array('alt' => 'slogan-left', 'style' => 'float: left; margin-top: 3px;'))?>

			<div class="slogan">
				<?php echo ($session->read('Auth.User.privilege_id')) == '3'? '[Administration]':'Votre avenir sur un bout de papier'; ?>
			</div>
			<?php echo $html->image('slogan-right.gif', array('alt' => 'slogan-right', 'style' => 'float: left; margin-top: 3px;'))?>
		</div>
		<div id="infos_login">
			<?php
				if($session->read('Auth.User.firstname') != "")
				{
					echo "Membre : ".ucfirst($session->read('Auth.User.firstname'));
					echo " ".$html->image('disconnect.png', array('alt' => 'deconnexion', 'url' => array('controller' => 'users', 'action' => 'logout')));
							
				}		
				/*else
					echo $this->Html->link('Se connecter', '/connexion', array('class'=>'bouton'));
					*/
			?>
					
		</div>	
		<div id="pages">
			<div id="pages-inside">
				<ul class="nav superfish">
					<li class="current_page_item"><?php echo $this->Html->link('Accueil', '/');?></li>
					<?php if($session->read('Auth.User.firstname') == "")
					{ ?>
					<li class="page_item page-item-132"><?php echo $this->Html->link('S\'inscrire', '/users/add', array('class'=>'bouton'));?></li>
					<li class="page_item page-item-132"><?php echo $this->Html->link('Se connecter', '/connexion', array('class'=>'bouton'));?></li>
					<?php } ?>
					
					
					<?php 
					//Cas Etudiant
					if($session->read('Auth.User.firstname') != "")
					switch($session->read('Auth.User.privilege_id'))
					{
						case "1":
						?>
						<li class="page_item page-item-130"><?php echo $this->Html->link('Mes CV', '/cvs/user/'.$session->read('Auth.User.id'), array('class'=>'bouton'));?>
							<ul class='children'>
								<li class="page_item page-item-208"><?php echo $this->Html->link('Ajouter', '/cvs/add/'.$session->read('Auth.User.id'), array('class'=>'bouton'));?></li>
								<li class="page_item page-item-212"><?php echo $this->Html->link('Consulter', '/cvs/user/'.$session->read('Auth.User.id'), array('class'=>'bouton'));?></li>
							
							</ul>
						</li>
						<li class="page_item page-item-132"><?php echo $this->Html->link('Mon charge de placement', '/users/chargeplacement', array('class'=>'bouton'));?></li>
						<?php
						break;
						
						case "2":
						?>
						<li class="page_item page-item-130"><?php echo $this->Html->link('Mes etudiants', '/users/index_etudiant', array('class'=>'bouton'));?>
							<?php /*
							<ul class='children'>
								<li class="page_item page-item-208"><?php echo $this->Html->link('Consulter', '/users/view/', array('class'=>'bouton'));?></li>
								<li class="page_item page-item-212"><?php echo $this->Html->link('modifier', '/users/edit/'.$session->read('Auth.User.id'), array('class'=>'bouton'));?></li>
							</ul>
							 */?>
						</li>
						<li class="page_item page-item-130"><a href="">Consulter les cv</a>
							<ul class='children'>
								<li class="page_item page-item-208"><?php echo $this->Html->link('Liste des CVs', '/cvs/index/', array('class'=>'bouton'));?></li>
							</ul>
							 
						</li>
						<?php
						break;
                                                case "3":
                                                    ?>
                                                        <li class="page_item page-item-130"><a href="">Membres</a>
                                                                <ul class='children'>
                                                                        <li class="page_item page-item-208"><?php echo $this->Html->link('Les etudiants', '/users/index_list_members/1', array('class'=>'bouton'));?></li>
                                                                        <li class="page_item page-item-208"><?php echo $this->Html->link('Les charges de placement', '/users/index_list_members/2', array('class'=>'bouton'));?></li>
                                                                        <li class="page_item page-item-208"><?php echo $this->Html->link('Les recruteurs', '/users/index_list_members/4', array('class'=>'bouton'));?></li>
                                                                </ul>

                                                        </li>
                                                        <li class="page_item page-item-130"><a href="">Categories</a>
                                                                <ul class='children'>
                                                                        <li class="page_item page-item-208"><?php echo $this->Html->link('Les categories', '/categories/index', array('class'=>'bouton'));?></li>
                                                                        <li class="page_item page-item-208"><?php echo $this->Html->link('Nouvelle Categorie', '/categories/add', array('class'=>'bouton'));?></li>
                                                                </ul>

                                                        </li>

                                                    <?php

                                                break;
						
						case "4":
						?>
						<li class="page_item page-item-130"><?php echo $this->Html->link('Consulter les CVs', '/cvs/') ?></li>
						<?php
						break;
					}
					?>
					
					<?php if($session->read('Auth.User.firstname') != "")
					{ ?>
					<li class="page_item page-item-130"><?php echo $this->Html->link('Mon Compte', '/users/view', array('class'=>'bouton'));?>
						
						<ul class='children'>
							<li class="page_item page-item-208"><?php echo $this->Html->link('Consulter', '/users/view/'.$session->read('Auth.User.id'), array('class'=>'bouton'));?></li>
							<li class="page_item page-item-212"><?php echo $this->Html->link('Modifier', '/users/edit/'.$session->read('Auth.User.id'), array('class'=>'bouton'));?></li>
						</ul>
					</li>
					<?php } ?>
					<li><?php echo $this->Session->flash('auth'); ?></li>
				</ul> 
						
				<?php echo $html->image('search-icon.gif', array('alt' => 'search-icon', 'id' => 'search-icon'))?>
				
				<div id="search-wrap">
					<div id="search-body">
						<div class="search_bg">
						       <!-- <form method="get" id="searchform" action="http://www.elegantthemes.com/preview/Bold/">
								<div>
									<input type="text" value="" name="s" id="s" />
									<input type="submit" id="searchsubmit" value="Search" />
								</div>
							</form> -->
							<?php 
								echo $this->Form->create('searchForm', array('id'=>'searchform','url' => array('controller' => 'users', 'action' =>'searchKeywords')));
								echo $form->input('keywords', array('id'=> 's','style'=>'margin-left:15px','label' => false));
								echo $form->submit('Valider', array('id' => 'searchsubmit'));
								echo $form->end();
							?>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div style="clear: both;"></div>
		<div id="bodywrap">
			<div id="bottom-bg">
				<div id="wrapper2">
					<?php /*
					
					<div class="featured-block2"> 
						<div class="featured-block-inside">

							<div class="featured-date">
								<span class="featured-date-left"></span>
								<span class="featured-date-inside"><?php echo date('d M Y') ?></span>
							</div>

							<span class="titles-featured">
								Les nouveaux cv
							</span>
							<span class="featured-line"></span>						
							<div>
								
							</div>
						</div>
					</div>

		
					<div class="featured-block"> 
						<div class="featured-block-inside">
							<div class="featured-date">
								<span class="featured-date-left"></span>
								<span class="featured-date-inside"><?php echo date('d M Y') ?></span>
							</div>

							<span class="titles-featured">
								<?php echo $this->Html->link('Inscrivez vous', '/adduser', array('class'=>'bouton'));?>
							</span>
							<span class="featured-line"></span>

							<div>
								<!-- text -->
								
							</div>
						</div>
					</div>
					*/ ?>

					<div id="content">
						<?php echo $html->image('content-top.gif', array('alt' => 'content-top', 'style' => 'float: left;'))?>
						<div id="left-div">
							<?php echo $content_for_layout; ?>
						</div>
						<?php /*
						<div id="sidebar">
							<div class="sidebar-box-wrap">
								<div class="sidebar-box"><span class="sidebar-box-title">Edito</span>	
									<div>
										<img src="http://www.elegantthemes.com/preview/Bold/wp-content/themes/Bold/timthumb.php?src=http://www.elegantthemes.com/images/ColdStone/about.jpg&amp;h=74&amp;w=74&amp;zc=1" class="about-image" alt="about us image" />Consectetuer rutrum urna in, a molestie aliquam gravida, quam vestibulum ac. Consequat ut lacus tempus a ipsum, sociis urna sed, vel tellus maecenas nec, lorem maecena's tortor. At odio platea etiam. Euismod libero pretium accumsan pellentesque ac. Quam semper in vitae dictum eget, ipsum magna orci odio lectus.	<div class="clearfix"></div>
									</div> 
								</div>
							</div>
							<div class="sidebar-box-wrap">
								<div class="sidebar-box"><span class="sidebar-box-title">Archives</span>		
									<ul>
										<li><a href='http://www.elegantthemes.com/preview/Bold/?m=200809' title='September 2008'>September 2008</a></li>
										<li><a href='http://www.elegantthemes.com/preview/Bold/?m=200808' title='August 2008'>August 2008</a></li>
										<li><a href='http://www.elegantthemes.com/preview/Bold/?m=200807' title='July 2008'>July 2008</a></li>

										<li><a href='http://www.elegantthemes.com/preview/Bold/?m=200801' title='January 2008'>January 2008</a></li>
										<li><a href='http://www.elegantthemes.com/preview/Bold/?m=200609' title='September 2006'>September 2006</a></li>
									</ul>
								</div>
							</div>		
							
							
							<div class="sidebar-box-wrap">
								<div class="sidebar-box">		
									<span class="sidebar-box-title">Recent Posts</span>		
									<ul>
										<li><a href="http://www.elegantthemes.com/preview/Bold/?p=141" title="Ut sagittis ultrices urna eget">Ut sagittis ultrices urna eget</a></li>
										<li><a href="http://www.elegantthemes.com/preview/Bold/?p=125" title="Neque porro quisquam est qui">Neque porro quisquam est qui</a></li>
										<li><a href="http://www.elegantthemes.com/preview/Bold/?p=124" title="Nam libero tempore cum soluta">Nam libero tempore cum soluta</a></li>
										<li><a href="http://www.elegantthemes.com/preview/Bold/?p=123" title="Magna suspendisse eleifend at">Magna suspendisse eleifend at</a></li>
										<li><a href="http://www.elegantthemes.com/preview/Bold/?p=122" title="Etiam placerat ipsum porttitor">Etiam placerat ipsum porttitor</a></li>
									</ul>
								</div>
							</div>
							<div class="sidebar-box-wrap">
								<div class="sidebar-box">
									<span class="sidebar-box-title">Meta</span>			
									<ul>
										<li><a href="http://www.elegantthemes.com/preview/Bold/wp-login.php">Log in</a></li>
										<li><a href="http://www.elegantthemes.com/preview/Bold/?feed=rss2" title="Syndicate this site using RSS 2.0">Entries <abbr title="Really Simple Syndication">RSS</abbr></a></li>
										<li><a href="http://www.elegantthemes.com/preview/Bold/?feed=comments-rss2" title="The latest comments to all posts in RSS">Comments <abbr title="Really Simple Syndication">RSS</abbr></a></li>
										<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress.org</a></li>
									</ul>
								</div>
							</div>    
						</div>
						*/ ?>
						<div style="clear: both;"></div>
						<?php echo $html->image('content-bottom.gif', array('alt' => 'content-top', 'style' => 'float: left;'))?>
					</div>

					<div style="clear: both;"></div>
				</div>
			</div>

			<div id="footer">
				<div id="footer-inside">
					<div id="footer-inside-2">
						<div class="footer-box">
							<!--<h3>Meta</h3>-->
							<div style="clear: both;"></div>			
							
						</div>
						<div class="footer-box">
							<!--<h3>Custom Text Widget</h3>-->
							<div style="clear: both;"></div>			
							<div class="textwidget">
								
							</div>
						</div>
						<div class="footer-box">
							<!--<h3>Archives</h3>-->
							<div style="clear: both;"></div>		
						</div>
					</div>
				</div>
			</div>
			<div class="footer-bottom">
				<div class="footer-bottom-inside">
					Propulsé par <a href="/">President Corporation &copy;</a>
				</div>
			</div>
		</div>

		<?php echo $this->Html->script('custom'); ?>
		<?php echo $this->Html->script('superfish'); ?>
		<?php echo $this->Html->script('script'); ?>
	</body>
</html>
